/*
 * AbstractPlane.java
 * 
 * Created on 2008-04-18, 00:32:27
 */
package planesimulator.plane;

import com.jme.scene.Node;
import com.jmex.terrain.TerrainPage;

/**
 * Abstract class that represents a plane.
 * 
 * @author Mateusz 'm4linka' Malinowski (m4linka@gmail.com)
 */
abstract public class AbstractPlane extends Node {
    /** Ailerons position */
    public float left_right;
    
    /** Elevator position */
    public float up_down;
    
    /** Rudder position*/
    public float rudder_pos;
    
    /** Engine power currently used */
    public float engine_power;
    
    /** Current air density */
    public float density;

    /**
     * Constructor.
     * 
     * @param name Name of the plane.
     */
    protected AbstractPlane(String name,TerrainPage terrain) {
        super(name);
    }

    /** 
     * Update the current state.
     * 
     * @param time the time between frames 
     */
    abstract public void update(float time);
}
